Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unneeeded allocation in computeBoundingBox #43

Merged
merged 1 commit into from
Aug 17, 2022
Merged

remove unneeeded allocation in computeBoundingBox #43

merged 1 commit into from
Aug 17, 2022

Conversation

fumin
Copy link
Contributor

@fumin fumin commented Aug 17, 2022

This improves performance by reducing GC for Insert and Delete intensive
workloads.
As seen in the pprof graph to be attached in the pull request,
before this change time was spent on:

computeBoundingBox 16.26%
runtime.systemstack 20.06%

which adds up to almost 40%.

before

After this change, computeBoundingBox spends only 2%, and all traces of
GC are gone.
after

This improves performance by reducing GC for Insert and Delete intensive
workloads.
As seen in the pprof graph to be attached in the pull request,
before this change time was spent on:

computeBoundingBox  16.26%
runtime.systemstack 20.06%

which adds up to almost 40%.

After this change, computeBoundingBox spends only 2%, and all traces of
GC are gone.
@dhconnelly dhconnelly merged commit c144ab1 into dhconnelly:master Aug 17, 2022
@dhconnelly
Copy link
Owner

🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants